package org.kamionowski.supreme.services.crawler.impl;

import org.kamionowski.supreme.persistence.entity.Service;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Marcin Kamionowski
 * Date: 10.04.11
 * Time: 22:02
 */

public class CrawlerContext {

    private Service service;
    private final List<CrawlerStateListener> listeners;

    public CrawlerContext(List<CrawlerStateListener> listeners) {
        this.listeners = listeners;
    }

    public void setService(Service service) {
        this.service = service;
    }

    public Service getService() {
        return service;
    }

    public List<CrawlerStateListener> getListeners() {
        return listeners;
    }
}
